# Menu config for pekwm

# Variables
INCLUDE = "vars"

RootMenu = "PeK wm" {
  	Entry = "Run.." { Actions = "ShowCmdDialog" }
    Entry = "reload" { Actions = "Reload" }
    Entry = "restart" { Actions = "Restart" }

    Separator {}
    Entry { Actions = "Dynamic ~/.pekwm/scripts/pekwm_ls_menu -l1 -d /home/arp/" }
  	Entry = "term" { Actions = "Exec $TERM &" }
#  	Entry = "gmail" { Actions = "Exec $WEB http://mail.google.com/mail/?hl=fr&amp;shva=1#inbox &" }
    Submenu = "gmail" {
        Entry = "" { Actions = "Dynamic ~/.pekwm/scripts/pekwm_gmail.sh" }
    }
    Entry = "info" { Actions = "Exec conky -c ~/.pekwm/scripts/conkyfullrc &" }
    Entry = "" { Actions = "Dynamic ~/.pekwm/scripts/system.pl" }

  	Separator {}

  	Submenu = "config" {
  	  	Submenu = "pek config" {
  		    Entry = "~/.pekwm" { Actions = "Exec $FILE ~/.pekwm &" }
  		    Entry = "~start" { Actions = "Exec $EDIT ~/.pekwm/start &" }
  		    Entry = "~menu" { Actions = "Exec $EDIT ~/.pekwm/menu &" }
  		    Entry = "~keys" { Actions = "Exec $EDIT ~/.pekwm/keys &" }
  		    Entry = "~config" { Actions = "Exec $EDIT ~/.pekwm/config &" }
  		    Entry = "~autoprop" { Actions = "Exec $EDIT ~/.pekwm/autoproperties &" }
  		}
  		Submenu = "pek themes" {
  			Entry { Actions = "Dynamic /usr/share/pekwm/scripts/pekwm_themeset.sh /usr/share/pekwm/themes" }
  			Entry { Actions = "Dynamic /usr/share/pekwm/scripts/pekwm_themeset.sh ~/.pekwm/themes" }
  		}
        Submenu = "gtk themes" {
    		Entry { Actions = "Dynamic ~/.pekwm/scripts/pekwm_gtk_menu -l" }
        }
#  		Entry = "interface" {Actions = "Exec lxappearance &"}
  		Entry = "wallpaper" { Actions = "Exec nitrogen --sort=alpha ~/images/wallpapers &" }
  		Submenu = "3D effect" {
  		    Entry = "" { Actions = "Dynamic ~/.pekwm/scripts/pekwm_xcompmgr.sh" }
  		}
  		Entry = "display" { Actions = "Exec grandr &" }
  		Submenu = "conky" {
  		    Entry = "edit rc" { Actions = "Exec $EDIT ~/.pekwm/pek_conkyrc &" }
  		    Entry = "restart" { Actions = "Exec ~/.pekwm/pek_conkywonky &" }
  		}
  		Submenu = "tint2" {
  		    Entry = "edit rc" { Actions = "Exec $EDIT ~/.pekwm/pek_tint2rc &" }
  		    Entry = "restart" { Actions = "Exec ~/.pekwm/pek_tintwonky &" }
  		}
  		Entry = "screensaver" { Actions ="Exec gnome-screensaver-preferences &" }
  	}
  	Submenu = "apps" {
  	    Submenu = "graph" {
  	        Entry = "comix" { Actions = "Exec comix &" }
  	        Entry = "ghtumb" { Actions = "Exec gthumb ~/images &" }
  	        Entry = "the gimp" { Actions = "Exec gimp &" }
  	        Entry = "inkscape" { Actions = "Exec inkscape &" }
  	        Entry = "agave" { Actions = "Exec agave &" }
  	        Entry = "gcolor2" { Actions = "Exec gcolor2 &" }
  	        Entry = "phatch" { Actions = "Exec phatch &" }
  	        Entry = "font viewer" { Actions = "Exec gnome-specimen &" }
  	        Entry = "scan util" { Actions = "Exec xsane &" }
  	        Submenu = "screenshot" {
  	            Entry = "now" { Actions = "Exec scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ && gthumb ~/images/$f' &" }
  	            Entry = "in 5 secs" { Actions = "Exec scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ && gthumb ~/images/$f' &" }
  	            Entry = "in 10 secs" { Actions = "Exec scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ && gthumb ~/images/$f' &" }
  	        }
  	    }
  	    Submenu = "Web" {
  	        Entry = "firefox" { Actions = "Exec $WEB &" }
  	        Entry = "torrent" { Actions = "Exec transmission &" }
  	        Entry = "elinks" { Actions = "Exec $TERM -e elinks &" }
  	        Entry = "xchat" { Actions = "Exec xchat &" }
  	    }
  	    Submenu = "Media" {
  	        Entry = "vlc" { Actions = "Exec vlc &" }
  	        Entry = "moc" { Actions = "Exec roxterm -e mocp -T transparent-background &" }
  	        Entry = "audacity" { Actions = "Exec audacity &" }
  	        Entry = "cdripper" { Actions = "Exec sound-juicer &" }
  	        Entry = "soundconverter" { Actions = "Exec soundconverter &" }
  	        Entry = "avidemux" { Actions = "Exec avidemux &" }
  	        Entry = "winff" { Actions = "Exec winff &" }
  	        Entry = "cd/dvd burner" { Actions = "Exec xfburn &" }
  	        Entry = "desktop record" { Actions = "Exec gtk-recordMyDesktop &" }
  	        Entry = "volume" { Actions = "Exec gnome-volume-control &" }
  	    }
  	    Submenu = "Tools" {
  	        Entry = "searchtool" { Actions = "Exec catfish &" }
  	        Entry = "disk usage" { Actions = "Exec baobab &" }
  	        Entry = "calcul" { Actions = "Exec gcalctool &" }
  	        Entry = "notes" { Actions = "Exec xpad &" }
  	        Entry = "agenda" { Actions = "Exec osmo &" }
  	        Entry = "screenshot" { Actions = "Exec scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ && gthumb ~/images/$f'" & }
  	        Entry = "cd/dvd burner" { Actions = "Exec xfburn &" }
  	        Entry = "volume" { Actions = "Exec gnome-volume-control &" }
  	    }
  	}
  	Submenu = "admin" {
  	    Entry = "debs manager" { Actions = "Exec gksudo synaptic &" }
  	    Entry = "partitioner" { Actions = "Exec gksudo gparted &" }
  	    Entry = "root term" { Actions = "Exec gksudo $TERM &"}
  	    Entry = "root filer" { Actions = "Exec gksudo $FILE &" }
    }

    Separator {}

    Entry = "" { Actions = "Dynamic  ~/.pekwm/scripts/pekwm_time.sh" }

    Separator {}

    Entry = "exit" { Actions = "Exit" }
}

WindowMenu = "Window Menu" {
  	Entry = "(Un)Stick" { Actions = "Toggle Sticky" }
  	Entry = "(Un)Shade" { Actions = "Toggle Shaded" }
  	Entry = "Iconify " { Actions = "Set Iconified" }

  	Submenu = "Maximize" {
  		Entry = "Full" { Actions = "Toggle Maximized True True" }
  		Entry = "Horizontal" { Actions = "Toggle Maximized True False" }
  		Entry = "Vertical" { Actions = "Toggle Maximized False True" }
  	}
  	Submenu = "Fill" {
  		Entry = "Full" { Actions = "MaxFill True True" }
  		Entry = "Horizontal" { Actions = "MaxFill True False" }
  		Entry = "Vertical" { Actions = "MaxFill False True" }
  	}
  	Submenu = "Stacking" {
  		Entry = "Raise " { Actions = "Raise" }
  		Entry = "Lower" { Actions = "Lower" }
  		Entry = "Always On Top " { Actions = "Toggle AlwaysOnTop" }
  		Entry = "Always Below" { Actions = "Toggle AlwaysBelow" }
  	}
  	Submenu = "Decor" {
  		Entry = "Decor" { Actions = "Toggle DecorBorder; Toggle DecorTitlebar" }
  		Entry = "Border" { Actions = "Toggle DecorBorder" }
  		Entry = "Titlebar" { Actions = "Toggle DecorTitlebar" }

  	}
  	Submenu = "Skip" {
  		Entry = "Menus" { Actions = "Toggle Skip Menus" }
  		Entry = "Focus Toggle" { Actions = "Toggle Skip FocusToggle" }
  		Entry = "Snap" { Actions = "Toggle Skip Snap" }
  	}
  	SubMenu = "Send To" {
  		# Create sendto menu once per pekwm config reload. The fast way that
  		# will work for most if not all users.
  		COMMAND = "/usr/share/pekwm/scripts/pekwm_ws_menu.sh send"
  		# Create sendto menu every time the menu is opened. The slow way.
  		# This is what you want if you are using external tools to make
  		# the amount of workspaces something else than what you define in
  		# ~/.pekwm/config. You will know if you want this.
  		# Entry = "" { Actions = "Dynamic /usr/share/pekwm/scripts/pekwm_ws_menu.sh send dynamic" }
  	}
  	Separator {}
  	Entry = "Close" { Actions = "Close" }
  	Submenu = "Kill" { Entry = "Kill application" { Actions = "Kill" } }
  }
